from django.conf.urls import url
from rest_framework_jwt.views import obtain_jwt_token

from users import views

urlpatterns=[
    #  GET /users/usernames/(?P<username>\w{5,20})/count/
    url(r'^usernames/(?P<username>\w{5,20})/count/$',views.RegisterUsernameCountAPIView.as_view()),
    url(r'^phones/(?P<mobile>1[345789]\d{9})/count/$', views.RegisterMobileAPIView.as_view()),
    url(r'^$',views.RegisterUserAPIView.as_view()),
    url(r'auths/', views.UserAUthorizationAPIView.as_view()),
    url(r'^infos/$',views.PeopleToken.as_view()),
    url(r'^emails/$',views.EmailAPIVIew.as_view()),
    url(r'^emails/verification/$',views.EmailsVerificationAPIView.as_view()),
    url(r'^addresses/$',views.UserAdressAPIView.as_view()),
    url(r'^browerhistories/$',views.UserHistoryAPIView.as_view()),
    # url(r'^addresses/(?P<id>\d+)/status/$',views.AddressAddAPIView.as_view()),

]